package com.yesep.learn.design.behavioral.visitor;

public class Cat extends com.yesep.learn.design.common.pojo.Cat implements IPet {
    @Override
    public void accept(IVisitor visitor) {
        visitor.feedCat(this);
        System.out.printf("The %s %s is eating delicious food. \n", this.getClass().getSimpleName(), getName());
    }
}
